package com.wzcl.app.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.wzcl.app.dao.model.Activity;
import com.wzcl.app.dao.model.TestPaper;
import com.wzcl.app.model.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.util.Date;

/**
 * @author beingven
 * @Description TODO
 * @createTime 2021年01月06日 15:58:00
 */
@Data
public class TestPaperVo extends BaseDto {
    private Integer id;

    @ApiModelProperty("试卷名称")
    private String name;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("更新时间")
    private Date updateTime;

    @ApiModelProperty("试卷年级")
    private String gradeName;

    @ApiModelProperty("试卷类型")
    private String paperType;

    @ApiModelProperty("学科")
    private String subject;

    @ApiModelProperty("试卷下载量")
    private String downloadNumber;

    @ApiModelProperty("试卷链接")
    private String content;

    public static TestPaperVo create(TestPaper activity){
        TestPaperVo testPaperVo = new TestPaperVo();
        BeanUtils.copyProperties(activity,testPaperVo);
        return testPaperVo;
    }
}
